﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddDicClass.ascx.cs" Inherits="Hxsoft.AppV1.Admin.DicClassManage.Controls.AddDicClass" %>

<table border="0" cellpadding="0" cellspacing="0" width="100%" class="FormTable">
	<tr>
		<td class="FieldBox">字典标识</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlClassID" runat="server"></asp:TextBox>
			<asp:Button ID="btnValidateClassID" runat="server" CausesValidation="False" OnClick="btnValidateClassID_Click"
				Text="验证" />
			<span class="FieldExplain">[数字格式]</span>
			<asp:UpdatePanel id="upClassID" runat="server" RenderMode="Inline">
				<ContentTemplate>
					<asp:RequiredFieldValidator ID="RFVCtrlClassID" runat="server" ControlToValidate="CtrlClassID" ErrorMessage="字段 [ClassID] 不允许为空。">*</asp:RequiredFieldValidator>
					<asp:RegularExpressionValidator ID="REVCtrlClassID" runat="server" ControlToValidate="CtrlClassID" ValidationExpression="<%# Hxsoft.RegexExtensions.Pattern_Numerical %>" Display="Dynamic" ErrorMessage="输入字段 [ClassID] 的数据格式不符。"></asp:RegularExpressionValidator>
					<asp:CustomValidator ID="CVCtrlClassID" runat="server" ControlToValidate="CtrlClassID" ErrorMessage="指定的字典类别已经存在。" Display="Dynamic" OnServerValidate="CVCtrlClassID_ServerValidate"></asp:CustomValidator>
					<asp:Label ID="lValidateClassID" Visible="false" Text="可以正常使用！" runat="server"></asp:Label>
				</ContentTemplate>
				<Triggers>
					<asp:AsyncPostBackTrigger ControlID="btnValidateClassID" EventName="Click" />
				</Triggers>
			</asp:UpdatePanel>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">类别标题</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlClassName" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlClassName" runat="server" ControlToValidate="CtrlClassName" ErrorMessage="字段 [ClassName] 不允许为空。">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">类别代码</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlClassCode" runat="server"></asp:TextBox>
			<asp:Button ID="btnValidateClassCode" runat="server" CausesValidation="False"
				OnClick="btnValidateClassCode_Click" Text="验证" />
			<asp:UpdatePanel id="upClassCode" runat="server" RenderMode="Inline">
				<ContentTemplate>
					<asp:RequiredFieldValidator ID="RFVCtrlClassCode" runat="server" ControlToValidate="CtrlClassCode" ErrorMessage="字段 [ClassCode] 不允许为空。">*</asp:RequiredFieldValidator>
					<asp:CustomValidator ID="CVCtrlClassCode" runat="server" ControlToValidate="CtrlClassCode" ErrorMessage="指定的字典类别已经存在。" Display="Dynamic" OnServerValidate="CVCtrlClassCode_ServerValidate"></asp:CustomValidator>
					<asp:Label ID="lValidateClassCode" Visible="false" Text="可以正常使用！" runat="server"></asp:Label>
				</ContentTemplate>
				<Triggers>
					<asp:AsyncPostBackTrigger ControlID="btnValidateClassCode" EventName="Click" />
				</Triggers>
			</asp:UpdatePanel>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">备注</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlMemo" runat="server" CssClass="FullWidth" Rows="5" TextMode="MultiLine"></asp:TextBox>
		</td>
	</tr>
</table>